<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/framework/tcp/framework/MacroTools.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_5752cadd8276ecfd63d9b924f2a4d4b5.html">framework</a></li><li class="navelem"><a class="el" href="dir_c67741c6509c9bd4aec6faa9fd694608.html">tcp</a></li><li class="navelem"><a class="el" href="dir_cf0ab36ee90451b75992f2af7ab5af86.html">framework</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a>  </div>
  <div class="headertitle">
<div class="title">MacroTools.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="framework_2tcp_2framework_2_macro_tools_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a353ee81961243d1599c035a0a1b3d9ce"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="framework_2tcp_2framework_2_macro_tools_8h.html#a353ee81961243d1599c035a0a1b3d9ce">CHECK_SOCKET_ERR_RET</a>(ec,  logmsg,  ret)&#160;&#160;&#160;{ if(ec) { <a class="el" href="_log_factory_8h.html#a3bcb3081cc092adc9e13acb28e70d9e0">LOG_TOOLS</a>(<a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a>) &lt;&lt; logmsg &lt;&lt; &quot;:&quot; &lt;&lt; ec.GetErrorMsg(); return ret; } }</td></tr>
<tr class="separator:a353ee81961243d1599c035a0a1b3d9ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14116f2c190979f1003fe627c30f104a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="framework_2tcp_2framework_2_macro_tools_8h.html#a14116f2c190979f1003fe627c30f104a">CHECK_PARAM_RET</a>(param,  logmsg,  ret)&#160;&#160;&#160;{ if(!(param)) { <a class="el" href="_log_factory_8h.html#a3bcb3081cc092adc9e13acb28e70d9e0">LOG_TOOLS</a>(<a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a>) &lt;&lt; logmsg; return ret; } }</td></tr>
<tr class="separator:a14116f2c190979f1003fe627c30f104a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a14116f2c190979f1003fe627c30f104a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14116f2c190979f1003fe627c30f104a">&#9670;&nbsp;</a></span>CHECK_PARAM_RET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CHECK_PARAM_RET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">param, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">logmsg, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ret&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ if(!(param)) { <a class="el" href="_log_factory_8h.html#a3bcb3081cc092adc9e13acb28e70d9e0">LOG_TOOLS</a>(<a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a>) &lt;&lt; logmsg; return ret; } }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="framework_2tcp_2framework_2_macro_tools_8h_source.html">MacroTools.h</a> 第 <a class="el" href="framework_2tcp_2framework_2_macro_tools_8h_source.html#l00005">5</a> 行定义.</p>

</div>
</div>
<a id="a353ee81961243d1599c035a0a1b3d9ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a353ee81961243d1599c035a0a1b3d9ce">&#9670;&nbsp;</a></span>CHECK_SOCKET_ERR_RET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CHECK_SOCKET_ERR_RET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ec, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">logmsg, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ret&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;{ if(ec) { <a class="el" href="_log_factory_8h.html#a3bcb3081cc092adc9e13acb28e70d9e0">LOG_TOOLS</a>(<a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a>) &lt;&lt; logmsg &lt;&lt; &quot;:&quot; &lt;&lt; ec.GetErrorMsg(); return ret; } }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="framework_2tcp_2framework_2_macro_tools_8h_source.html">MacroTools.h</a> 第 <a class="el" href="framework_2tcp_2framework_2_macro_tools_8h_source.html#l00004">4</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
